import {
  getFormatterPrice
} from '@const/filter'
// 入库列表 - 表格1
export const pendingAddColumns = [{
  prop: 'saleDetailCode',
  label: '销售明细单号',
  minWidth: 160,
  'show-overflow-tooltip': true
},
{
  prop: 'prodCustomCode',
  label: '产品编码',
  'min-width': 150,
  showTooltipWhenOverflow: true
},
{
  prop: 'prodName',
  label: '产品名称',
  'min-width': 150,
  showTooltipWhenOverflow: true
},

{
  prop: 'prodSpecs',
  label: '规格',
  width: 150,
  'show-overflow-tooltip': true
},
{
  prop: 'prodModel',
  label: '型号',
  width: 150,
  'show-overflow-tooltip': true
},
{
  prop: 'minUnit',
  label: '最小单位',
  width: 100
},
{
  prop: 'price',
  label: '单价(元)',
  'min-width': 150,
  formatter: row => getFormatterPrice(Number(row.price) || 0)
},
{
  prop: 'registrationNumber',
  label: '注册证号/备案证号',
  width: 170,
  'show-overflow-tooltip': true
},
{
  prop: 'manufacturer',
  label: '生产厂家',
  width: 170,
  'show-overflow-tooltip': true
},
{
  prop: 'prodBigCategory',
  label: '产品大类',
  width: 100
},
{
  prop: 'saleCount',
  label: '销售数量',
  width: 110
},
{
  prop: 'detailAmount',
  label: '小计金额（元）',
  width: 170,
  formatter: row => getFormatterPrice(Number(row.detailAmount) || 0)
},
{ prop: 'remarks', label: '备注', width: 150, 'show-overflow-tooltip': true },
{
  prop: 'hospitalProdCode',
  label: '医疗机构产品编码',
  width: 190,
  'show-overflow-tooltip': true
},
{
  prop: 'supplierName',
  label: '供应商',
  width: 110,
  'show-overflow-tooltip': true
},
{
  prop: 'deliveredCount',
  label: '已发货数量',
  width: 110
},
{
  prop: 'undeliveredCount',
  label: '待发货数量',
  width: 110
},
{
  prop: 'sweepCount',
  label: '已扫码数量',
  width: 120,
  fixed: 'right'
},
{
  prop: 'operation',
  label: '操作',
  width: 80,
  fixed: 'right'
}
]

// 入库列表 - 表格1
export const pendingAddColumnsbox = [{
  label: '序号',
  type: 'index',
  width: 56
},
{
  prop: 'barCode',
  label: '主码',
  width: 150
},
{
  prop: 'productDate',
  label: '生产日期(11)',
  width: 120
},
{
  prop: 'expDate',
  label: '失效日期(17)',
  width: 120
},
{
  prop: 'productBatch',
  label: '批号(10)',
  width: 150
},
{
  prop: 'serialNumber',
  label: '序列号(21)',
  width: 150
},
{
  prop: 'udi',
  label: 'UDI',
  'min-width': 150
},
{
  prop: 'count',
  label: '数量',
  width: 100
}
]

// 入库操作 - 下面表头1
export const handleitemColumns = [{
  label: '序号',
  type: 'index',
  width: 56
},
{
  prop: 'barCode',
  label: '主码',
  width: 150
},
{
  prop: 'productDate',
  label: '生产日期(11)',
  width: 140
},
{
  prop: 'expDate',
  label: '失效日期(17)',
  width: 140
},
{
  prop: 'productBatch',
  label: '批号(10)',
  width: 150
},
{
  prop: 'serialNumber',
  label: '序列号(21)',
  width: 150
},
{
  prop: 'udi',
  label: 'UDI',
  'min-width': 150
},
{
  prop: 'count',
  label: '数量',
  width: 120
},
{
  prop: 'action',
  label: '操作',
  width: 100,
  fixed: 'right'
}
]
export const sweepCodeTab = [{
  lab: '待扫码',
  val: 0
},
{
  lab: '已扫码',
  val: 1
}
]

// 基本信息1
export const recordFormDetail = [
  [{
    key: 'saleOrderCode',
    label: '销售单号'
  },
  {
    key: 'relationOrderCode',
    label: '关联订单号'
  },
  {
    key: 'statusName',
    label: '订单状态'
  }
  ],
  [{
    key: 'createDate',
    label: '创建时间'
  },
  {
    key: 'hospitalName',
    label: ' 医疗机构'
  },
  {
    key: 'applyDept',
    label: '申请科室'
  }
  ],
  [{
    key: 'receiveAddress',
    label: '收货地址'
  },
  {
    key: 'contacts',
    label: '联系人'
  },
  {
    key: 'contactNumber',
    label: '联系电话'
  }
  ]
]
